import request from '@/utils/request';

// 客户用户列表
export const getAllUserInfos = (data) => {
  return request({
    url: '/console/users/getAllUserInfos',
    method: 'POST',
    data,
  })
}
// 导出客户用户列表
export const exportUsers = (data) => {
  return request({
    url: '/console/users/exportUsers',
    method: 'POST',
    responseType: 'blob',
    data,
  })
}
// 获取客户用户详细信息
export const getUserInfoDetail = (data) => {
  return request({
    url: '/console/users/getUserInfoDetail',
    method: 'POST',
    data,
  })
}
// 获取商家用户
export const getShopUserInfos = (data) => {
  return request({
    url: '/console/users/getShopUserInfos',
    method: 'POST',
    data,
  })
}
// 导出商家用户
export const exportShopUsers = (data) => {
  return request({
    url: '/console/users/exportShopUsers',
    method: 'POST',
    responseType: 'blob',
    data,
  })
}
// 获取商家用户详细信息
export const getShopUserInfoDetail = (data) => {
  return request({
    url: '/console/users/getShopUserInfoDetail',
    method: 'POST',
    data,
  })
}

// 设为自营
export const settingSelf = (data) => {
  return request({
    url: '/console/users/settingSelf',
    method: 'POST',
    data,
  })
}
// 账号启用
export const accountEnable = (data) => {
  return request({
    url: '/console/users/accountEnable',
    method: 'POST',
    data,
  })
}
// 账号禁用
export const accountDisable = (data) => {
  return request({
    url: '/console/users/accountDisable',
    method: 'POST',
    data,
  })
}